Use gtk_info_bar_add_child throughout
authorMatthias Clasen <mclasen@redhat.com>
Thu, 7 May 2020 16:52:49 +0000 (12:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 12 May 2020 02:21:39 +0000 (22:21 -0400)
tests/testinfobar.c

index 9145aba9c261dd51bd43839d721397093386f7e6..ee7ab749fb44d0be85ff99fedefd15ec448ee2ad 100644 (file)
@@ -35,8 +35,8 @@ on_activate (GApplication *application,
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
 
   info_bar = gtk_info_bar_new ();
-  gtk_container_add (GTK_CONTAINER (info_bar),
-                     gtk_label_new ("Hello!\nI am a GtkInfoBar"));
+  gtk_info_bar_add_child (GTK_INFO_BAR (info_bar),
+                          gtk_label_new ("Hello!\nI am a GtkInfoBar"));
 
   widget = gtk_toggle_button_new_with_label ("Toggle :visible");
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);